package com.example.demo.controller;

import com.example.demo.pojo.entity.Result;
import com.example.demo.service.StyleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetStyleController {
    /**
     * 获取风格
     *
     * @return
     */
    @Autowired
    private StyleService styleService;
    @GetMapping("/api/styles")
    public Result getStyle() {
        return Result.success(styleService.getStyle());
    }
}
